var http = require('http')

http.createServer(function(req,res){
	if(req.url=='./stream'){
		res.writeHead(200, { 'Content-Type': 'text/plain' });
  		res.write('okay');
  		var interval = setInterval(function(){
			var message = new Date();
			res.write(message);
		},2000)
	}	
}).listen(8989,'127.0.0.1')
